﻿using System;

namespace ObserverPattern
{
    public class Class1
    {
        public void T1()
        {
            TongZhiZhe1 t1 = new TongZhiZhe1("哈老大叔");
            t1.Add(new DingYueZhe1("xiaolan"));
            t1.Add(new DingYueZhe2("xiaohong"));
            t1.Statis = "有情况";
            t1.Notify();
            Console.ReadLine();
        }
    }
}
